using System;
using System.Collections.Generic;
using System.Text;
using LeisureCenter.Api;

namespace DirectShowPlayer
{
    [VideoDvdPlayer]
    public class DirectShowPlayer : BasePlayer
    {
        public const string Name = "DirectShow";
        public DirectShowPlugin plugin;

        public DirectShowPlayer(DirectShowPlugin plugin)
        {
            this.plugin = plugin;
        }

        public override IMedia CreateMedia(string fileName, MediaKind kind)
        {
            switch (kind)
            {
                case MediaKind.CD:
                    break;
                case MediaKind.DVD:
                    return new DirectShowVideoDvdMedia(this, fileName);
                case MediaKind.Music:
                    return new DirectShowAudioMedia(this, fileName);
                case MediaKind.Video:
                    return new DirectShowVideoMedia(this, fileName);
            }
            return null;
        }
    }
}
